package com.itheima.reggie.service.Dish;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.DTO.DishDto;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.mapper.Dish.DishMapper;

public interface DishService extends IService<Dish> {
    public void saveWithFlavor(DishDto dishDto);


    /**
     * 根据 id 查询 菜品信息 and 口味信息
     * @param id
     * @return
     */
    public DishDto getByIdWithFlavor(Long id);

    public void updateWithFlavor(DishDto dishDto);

    /**
     * 根据 id 删除菜品 and 对应的菜品口味
     * @param ids
     */
    public boolean deleteWithFlavor(String ids);
}